<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>xinghuiMS</title>
	<style type="text/css">
	<!--
	table { font-size:12px; }
	.textNoBorder{ height:16px; font-size:12px; background-color:#f9f9f9; border:solid 0px #f9f9f9;  }
	-->
	</style>
</head>

<script type="text/JavaScript">
<!--

function doCheck()
{
    var username=document.getElementById("username").value;
    if(username.length==0)
    {
        alert('请输入您的姓名！');
        document.getElementById("username").focus();
        return false;
    }
   
    var password=document.getElementById("password").value;
    if(password.length==0)
    {
        alert('请输入您的密码！');
        document.getElementById("password").focus();
        return false;
    }
    
    return true;
}

function doReset()
{
    document.getElementById("username").value = "";
    document.getElementById("password").value = "";
    return false;
}

//-->
</script>

<body bgcolor="#686868" style="margin:0;overflow:hidden;">

<form name="myform" action="<%= request.getContextPath() %>/login/doLogin" method="post">

	
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr><td>&nbsp;</td></tr>  
  
  <tr>
    <td align="center" height="259">
    	<table width="552" height="259" align="center" border="0" cellpadding="0" cellspacing="0"  background="${createLinkTo(dir:'imageslogin',file:'grayLoginBg.gif')}">
	      <tr>
	        <td height="96" colspan="2">&nbsp;</td>
	      </tr>

	      <tr>
	        <td height="52" colspan="2">
	        	<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
	        		<tr>
	        			<td height="20" style="padding-left:162;padding-top:0px;padding-bottom:0px">
	        				<input type="text" id="username" name="username" value="linxinghui"  class="textNoBorder">
	        			</td>
	        		</tr>
	        		<tr><td height="12px" style="line-height:12px">&nbsp;</td></tr>
	        		<tr>
	        			<td height="20" style="padding-left:162">
	        				<input type="password" id="password" name="password" value="111111" class="textNoBorder">
	        			</td>
	        		</tr>
	        	</table>
	        </td>
	      </tr> 

	      <tr>
	        <td height="60" colspan="2" style="padding-left:130px">
	        	<input type="image" src="${createLinkTo(dir:'imageslogin',file:'grayLoginBtn.gif')}" onclick="return doCheck()">&nbsp;&nbsp;
	        	<input type="image" src="${createLinkTo(dir:'imageslogin',file:'grayResetBtn.gif')}" onclick="return doReset()">
	        </td>
	      </tr>
	      <tr>
	        <td colspan="2">&nbsp;</td>
	      </tr>     
      </table>
    </td>
  </tr>
  
  <tr><td height="50" align="center" valign="top"><img src="${createLinkTo(dir:'imageslogin',file:'grayCopy.gif')}"></td></tr>
  
  <tr><td>&nbsp;</td></tr>
</table>

</form>

<script>
if('${flag}' == 'error')
	alert('用户信息不对,请重新登陆!')
</script>

</body>
</html>
